package com.wang.springframework.test.bean;

import java.util.Random;

/**
 * @author wangjianhua
 * @Description
 * @date 2021/9/3/003 14:52
 **/
public class UserService implements IUserService{


    @Override
    public String queryUserInfo() {
        try
        {
            Thread.sleep(new Random(1).nextInt(100));
        }
        catch (InterruptedException e)
        {
            e.printStackTrace();
        }
        return "tom,10086,北京";
    }

    @Override
    public String register(String userName) {
        try
        {
            Thread.sleep(new Random(1).nextInt(100));
        }
        catch (InterruptedException e)
        {
            e.printStackTrace();
        }
        return "注册用户:"+userName+"success!";
    }
}
